#include "stdafx.h"
#include <string>
#include "Controls.h"

using namespace std;



void Controls::Inilitize(void)
{
	// TODO: load in key bindings from an ini file

	move_forward = NamedKey("MoveForward", Keys::W);
	move_backward = NamedKey("MoveBackward", Keys::S);
	move_left = NamedKey("MoveLeft", Keys::A);
	move_right = NamedKey("MoveRight", Keys::D);
	open_inventory = NamedKey("Inventory", Keys::Tab);
	jump = NamedKey("Jump", Keys::Spacebar);
	interact = NamedKey("Interact", Keys::E);

	lock_on = NamedKey("LockOn", MouseButtons::Middle);
	sprint = NamedKey("Sprint", Keys::LShift);
	reload = NamedKey("Reload", Keys::R);


	primary_fire = NamedKey("PrimaryFire", MouseButtons::Left);
	block = NamedKey("Block", MouseButtons::Right);
}